package com.github.m6d21.sso.support.model;

import java.util.Map;

/**
 *<p>
 *token
 *</p>
 *
 * @author liuyang
 * @date 2018/12/9 Sun 00:58:00
 * @since 1.0.0
 */
public class SsoTokenWrapper {

    /**
     * token
     */
    private String token;
    /**
     * 用户id
     */
    private String uid;
    /**
     * 用户名
     */
    private String username;
    /**
     * 展示名
     */
    private String displayName;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 域名
     */
    private String domain;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 创建时间戳（单位：微秒）
     */
    private Long createTime = System.currentTimeMillis();

    private Map<String, String> attributes;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }


    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Map<String, String> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, String> attributes) {
        this.attributes = attributes;
    }

    @Override
    public String toString() {
        return "SsoTokenWrapper{" +
            "token='" + token + '\'' +
            ", uid='" + uid + '\'' +
            ", username='" + username + '\'' +
            ", displayName='" + displayName + '\'' +
            ", phone='" + phone + '\'' +
            ", domain='" + domain + '\'' +
            ", updateTime=" + updateTime +
            ", createTime=" + createTime +
            ", attributes=" + attributes +
            '}';
    }
}
